import request from '@/utils/request'

// 查询证书列表
export function listCert(data) {
    return request({
        url: '/cert/cert/list',
        method: 'post',
        data: data
    })
}

// 查询证书详细
export function getCert(id) {
    return request({
        url: '/cert/cert/' + id,
        method: 'get'
    })
}

// 新增证书
export function addCert(data) {
    return request({
        url: '/cert/cert',
        method: 'post',
        timeout: 100000,
        data: data
    })
}

// 修改证书
export function updateCert(data) {
    return request({
        url: '/cert/cert',
        method: 'put',
        data: data
    })
}

// 删除证书
export function delCert(id) {
    return request({
        url: '/cert/cert/' + id,
        method: 'delete'
    })
}
